@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <div class="row">
                <div class="col-sm-6 b-r">
                    <input id="itemId" type="hidden" value="${item.itemId}"/>
                    <input id="platform" type="hidden" value="${item.platform}"/>
                    <input id="paymentId" type="hidden" value="${item.paymentId}"/>
                    <#input id="platformValue" name="终端设备" readonly="true"/>
                    <#input id="paymentName" name="简体名称" value="${item.paymentName}"  readonly="true"/>
                    <#input id="englishName" name="英文名称" value="${item.englishName}"  readonly="true"/>
                    <#input id="taiwanName" name="繁体名称" value="${item.taiwanName}"  readonly="true"/>
                </div>

                <div class="col-sm-6">
                    <#select id="status" name="状态">
                        <option value="0">禁用</option>
                        <option value="1">启用</option>
                    </#select>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="PaymethodInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="PaymethodInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/vpn_pay_method/paymethod/paymethod_info.js"></script>
<script>
    $(function () {
        var platform = "${item.platform}";
        var platformValue = "未知";

        if(platform == 1){
            platformValue =  "Android"
        }
        else if(platform == 2){
            platformValue =   "IOS"
        }
        else if(platform == 3){
            platformValue =   "Windows"
        }
        else if(platform == 4){
            platformValue =   "Mac"
        }
        else if(platform == 5){
            platformValue =   "Web"
        }
        $("#platformValue").val(platformValue).val();

        var statusValue = "${item.status}";

        $("#status").find("option[value="+statusValue+"]").attr("selected","selected");

    })

</script>
@}
